<?php
header("Content-Type:text/html;charset=utf-8");
set_time_limit(0);
include_once dirname(dirname(__FILE__))."/include/common.inc.php";
include_once dirname(dirname(__FILE__))."/joke/function.joke.php";

	$global_site = "joke";
	
	$ymd = date("Y-m-d", time());

	//创建page目录
	$page_dir = ROOT_PATH."/joke/pages";
	if(!is_dir($page_dir)){
		mkdir($page_dir);
	}
	$page_dir = $page_dir."/".$ymd."/";
	if(!is_dir($page_dir)){
		mkdir($page_dir);
	}
	
	//抓取，提取和入库
	qiubai_crawl();
	//haha_crawl();
	//yile_crawl();

?>